package utils;

import hasthi.common.HasthiException;
import hasthi.common.XmlBeanUtils;
import hasthi.container.CommunicationClient;
import hasthi.container.CommunicationContianier;
import hasthi.container.MessageContext;
import hasthi.container.NodeAddress;

import org.apache.xmlbeans.XmlObject;

public class DummySoapContainer implements CommunicationContianier,CommunicationClient{

    public CommunicationClient createCommunicationClient()
            throws HasthiException {
        return this;
    }

    public void send(MessageContext message) throws HasthiException {
       System.out.println(XmlBeanUtils.prettyPrint(message.getRequest()));
    }

    public XmlObject sendReceive(MessageContext message) throws HasthiException {
        return null;
    }

    public void startContainer() throws HasthiException {
    }

    public void stopContainer() throws HasthiException {
    }

    public String getContainierAddress() {
        return null;
    }
}
